import { createRouter, createWebHashHistory } from 'vue-router';
import routes from '~pages';

const defaultRoutes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../pages/home/index.vue'),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...defaultRoutes, ...routes],
});

export default router;
